<template>
  <section class="container">
    <div>
      <h1 class="title">
        List
      </h1>
      <div class="list">
          <li v-for="(d, date) in dd" :key="date">
              {{ d.sunrise }}
          </li>
          <a href="/users/1">info1</a>
      </div>
    </div>
  </section>
</template>

<script>
import axios from 'axios'
export default {
  components: {
  },
  layout: 'admin',
  async asyncData ({ params }) {
    let { data } = await axios.get('http://t.weather.sojson.com/api/weather/city/101030100')
    return { dd: data.data.forecast }
  },
  data() {
    return {
      title:"aaa",
      activeIndex: '1',
      activeIndex2: '1'
    };
  }
}
</script>

<style>

.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: 'Quicksand', 'Source Sans Pro', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
